# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-deepmerge
pkgver=1.1.1
pkgrel=1
pkgdesc="A toolset to deeply merge python dictionaries"
url="https://github.com/toumorokoshi/deepmerge"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
	py3-gpep517
	py3-installer
	py3-setuptools
	py3-setuptools_scm
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/d/deepmerge/deepmerge-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/deepmerge-$pkgver"

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
f3b160dc93679688f4093f1e1bc0ed476e1823540b4bebc93fd3b65d3a432b150a5d08e3b0b316fa8992659805057e7a48b925bb23ec4508dde1353a67b3175d  deepmerge-1.1.1.tar.gz
"
